local skel = fk.CreateSkill {
  name = "rmt__luomoo",
}

skel:addEffect(fk.CardUseFinished, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    local current = table.find(player.room.alive_players, function(p) return p.phase ~= Player.NotActive end)
    return current and target == current and player:hasSkill(skel.name) and player.room:getCardArea(data.card) == Card.Processing and
    data.card.suit == Card.Club and player:usedSkillTimes(skel.name, Player.HistoryTurn) == 0
  end,
  on_cost = function(self, event, target, player, data)
    local current = table.find(player.room.alive_players, function(p) return p.phase ~= Player.NotActive end)
    if current == nil then return end
    return player.room:askToSkillInvoke(player, {
      skill_name = skel.name,
      prompt = "#rmt__luomoo-choose:::"..current.general..":"..data.card:toLogString(),
    })
  end,
  on_use = function(self, event, target, player, data)
    local current = table.find(player.room.alive_players, function(p) return p.phase ~= Player.NotActive end)
    if current then
      player.room:obtainCard(current, data.card, true, fk.ReasonPrey, player, skel.name)
    end
  end,
})

Fk:loadTranslationTable{
  ["rmt__luomoo"] = "落墨",
  [":rmt__luomoo"] = "每回合限一次，当前回合角色使用的♣牌结算完后，你可令其获得之。",

  ["#rmt__luomoo-viewas"] = "落墨：是否令 %arg 获得 %arg2 ？",

  ["$rmt__luomoo1"] = " ",
  ["$rmt__luomoo2"] = " ",
}

return skel
